package academic.ui.client.event;

import com.google.gwt.event.shared.GwtEvent;
import com.gwtplatform.mvp.client.EventBus;

public class LogOutEvent extends GwtEvent<LogOutEventHandler>{

	
	private static final Type<LogOutEventHandler> TYPE = new Type<LogOutEventHandler>();
	
	public static Type<LogOutEventHandler> getType() {
		return TYPE;
	}
	
	public static void fire(EventBus eventBus) {
		eventBus.fireEvent(new LogOutEvent());
	}
	
	@Override
	protected void dispatch(LogOutEventHandler handler) {
		handler.onLogOutEvent(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<LogOutEventHandler> getAssociatedType() {
		return getType();
	}

}
